<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>demo</title>
  <script type="text/javascript" src="../vue.js"></script>
</head>

<body>
  <div id="app">
    <h1>Tab选项卡</h1>
    <!--  -->
    <button @click="count=1">新闻</button>
    <button @click="count=2">体育</button>
    <button @click="count=3">歌曲</button>
    <button @click="count=4">彩票</button>

    <ul v-show="count===1">
      <li>霓虹第一男枪</li>
      <li>科比复活</li>
      <li>泰迪出笼</li>
    </ul>

    <ul v-show="count===2">
      <li>1分</li>
      <li>2分</li>
      <li>3分</li>
    </ul>

    <ul v-show="count===3">
      <li>月亮之上</li>
      <li>我在仰望</li>
      <li>多少梦想</li>
    </ul>

    <ul v-show="count===4">
      <li>中了</li>
      <li>没中</li>
      <li>真中了</li>
    </ul>

  </div>
</body>
<script type="text/javascript">
  Vue.config.productionTip = false;
  const vm = new Vue({
    el: "#app",
    data() {
      return {
        count: 1
      }
    }
  })
</script>

</html>